package com.wangijun.yuan.core.model.em;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 操作类型
 *
 * @author mldong
 */
@Getter
public enum OperateTypeEnum {

    comment_like(0, "评论点赞"),

    article_like(1, "文章点赞"),

    article_fav(2, "文章收藏"),

    user_follow(3, "关注用户"),
    tag_follow(4, "关注标签"),
    topic_follow(5, "关注话题"),
    ;
    @EnumValue
    @JsonValue
    private final Integer code;
    private final String message;

    OperateTypeEnum(int value, String name) {
        this.code = value;
        this.message = name;
    }
}